package com.dailyblue.java.spring.ioc.mybatis;

import com.dailyblue.java.spring.ioc.mybatis.bean.Emp;
import com.dailyblue.java.spring.ioc.mybatis.bean.JsonResult;
import com.dailyblue.java.spring.ioc.mybatis.service.EmpService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import java.util.List;

public class App {

    public static void main(String[] args) {
        ApplicationContext beans = new AnnotationConfigApplicationContext("com.dailyblue.java.spring.ioc.mybatis.config");
        EmpService service = beans.getBean(EmpService.class);
        //JsonResult<List<Emp>> result = service.findAllEmp();
        //result.getT().forEach(System.out::println);
        service.change("秋一凡",7946);
    }
}
